<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<s:form method="post" action="test!save.do">
	<s:hidden name="jewelry.jewelry_id"/>
	
	<table border=1 width="80%" align="center">
		<tr>
			<th>dtl_id</th>
			<th>jewelry_id</th>
			<th>level</th>
			<th>material_id</th>
			<th>px</th>
			<th>py</th>
		</tr>
	
		<s:iterator value="detailList" var="var" status="st">
			<s:hidden name="%{'detailList['+#st.index+'].dtl_id'}"/>
			<tr>
				<td><s:property value="#var.dtl_id" /></td>
				<td><s:property value="#var.jewelry_id" /></td>
				<td><s:property value="#var.level" /></td>
				<td><s:textfield name="%{'detailList['+#st.index+'].material_id'}" /></td>
				<td><s:textfield name="%{'detailList['+#st.index+'].px'}" /></td>
				<td><s:textfield name="%{'detailList['+#st.index+'].py'}" /></td>
			</tr>
		</s:iterator>
	</table>
	<table border=0 width="80%" align="center">
		<tr><td align="center">
			<input type="submit" value="保存"/>
		</td></tr>
	</table>
</s:form>